home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-05-05 | 3.1 KB | 116 lines |
- #
- # $RCSfile: makefile.options,v $
- # $Revision: 1.2 $ $Date: 1996/05/04 23:51:42 $
- #
-
- #
- # *********************************************** MACH_TYPE_RS6000
- #
- # Define this variable if compiling on an IBM RS6000
- #MACH_TYPE_RS6000 = TRUE
-
- #
- # ******************************************************** SUFFIX
- #
- #
- # If the disk process is made with flags that don't correspond
- # to those of the sm_server the two processes won't
- # interact properly.
- # In order to allow several differently made version to coexist,
- # the name of the diskrw process reflects the flags
- # used to make it.
- # WHENEVER YOU CHANGE THE DEBUGFLAGS, remember to
- # YOU MUST CHANGE SUFFIX (below) ACCORDINGLY!
- #
- # ----------------------------------------------------------------
- # Here are options for different configurations :
- # ----------------------------------------------------------------
- # normal use: SUFFIX=, DEBUGFLAGS=
- #
- # debugging version: SUFFIX=.debug, DEBUGFLAGS= -DDEBUG -g
- #
- # profiled version: SUFFIX=.prof, DEBUGFLAGS= -DPROFIL -p
- #
- # IPS version : SUFFIX=.ips, DEBUGFLAGS = -O -DIPS_SUPPORT
- #
-
- #SUFFIX=.debug
- #DEBUGFLAGS= -DDEBUG -g
- SUFFIX=
- DEBUGFLAGS= -O
-
- #
- # ******************************************************** IPS SUPPORT
- #
- # IPS compilation support requires the ips cc compiler to be used
- # (including by the AT&T C++ compiler). Also, IPS_SUPPORT must
- # be defined.
- #
- #ccC = /usr/public/ips/cc
- #CC = $(ccC) -pi
- #CPLUSPLUS = ccC=$(ccC) CC -pi
- #SUFFIX=.ips
- #DEBUGFLAGS = -O -DIPS_SUPPORT
- #
-
-
- #
- # DO NOT TOUCH THESE 3 MACROS:
- #
- DISKRW=diskrw$(SUFFIX)
- SERVER=sm_server$(SUFFIX)
- FORMATVOL=formatvol$(SUFFIX)
-
- #
- # ******************************************************* MAKE macrocs
- #
- RM = /bin/rm
- AR = /usr/bin/ar
-
- #
- # ******************************************************** DEBUGFLAGS
- #
- #
- # The following macro is used to control debugging (and any other
- # options, really)
- # See also SUFFIX, above.
- # -DDEBUG : includes all sorts of internal checks
- # -g : symbols for dbx
- # -DPROFIL -p: includes code for handling the commands to dump
- # prof(1) info in a file. The -p flag is required
- # when -DPROFIL is used.
- # -O : optimize when debugging is not on. with some
- # compilers, can't use -O with -g. With others, you
- # HAVE to use -O if you don't use -DDEBUG or else you'll
- # get bogus references from ASSERTS (no -O means not even
- # boolean short-circuiting is done with CONSTANT expressions,
- # for g++, anyway)
- #
- # (We use RELEASE_FLAGS only to make the mechanized release stuff easier,
- # since it uses sed to change the UW default to the release default.)
- # DO NOT DELETE RELEASE_FLAGS: make binary_release uses it!!!
- #
- RELEASE_FLAGS = -O
- #DEBUGFLAGS = -O
-
- #
- # ******************************************************* LD FLAGS
- #
- # When linking an executable, these flags are passed to LD.
- # In general there does not need to be any flags set, but
- # on HP-UX a server linked with g++ will crash on initialization
- # unless the -static option is used when linking.
- #
- LDFLAGS = -static
-
- #
- # ******************************************************* COMPILERS
- #
- #
- # Compilers
- #
- CPLUSPLUS = g++ -I/usr/include
- CC = $(CPLUSPLUS)
- CPP = $(CPLUSPLUS) -E
-
-